/**
 * Created by henian.xu on 2017/3/26.
 *
 */

//图片上传 初始化
//weUploader
$('.z-webuploader.J-img').each(function () {
  new Webuploader({
    containerEl: this,
    webuploader: {
      server: '/after/comm/attachment/uploadDriverQualification',
      fileNumLimit: 3,//最大上传数量
      fileSingleSizeLimit: 1024 * 1024,//单文件最大大小
      //上传文件类型
      accept: {
        title: 'Images',
        extensions: 'gif,jpg,jpeg,bmp,png',
        mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
      }
    },
    onFilesChang:function (fileLength) {

    }
  });
});
